package org.example.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class OrderController {
    @PostMapping("/order")
    @PreAuthorize("hasRole('GUEST')")
    public String orderList(){
        return "list";
    }
}
